package cn.t222.ch02;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class Ch02App {
    public static void main(String[] args) {
        SpringApplication.run(Ch02App.class, args);
    }

    @Bean
    User user() {
//        return new User("李四","123");
        return new User().setName("zs")
                .setPassword("123");
    }
}
